import {observable,action,computed} from 'mobx'
import { ajax } from '../api';

class Uinfo{
    @observable userInfo:any=null;

    @action changeInfoAsync=async()=>{
        let res=await ajax.getUserinfo()
        res.code=200&&(this.userInfo=res.result)
        
    }
    @action changeInfo= (payload:any) =>{
        this.userInfo = payload;
    }
}

export default new Uinfo() 